package com.etc.delivery.dao.admin;

import com.etc.delivery.entity.Warehouse;
import com.etc.delivery.entity.Waybill;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminWarehouseDao {


    public List<Warehouse> queryWarehouse(@Param("name") String name, @Param("address") String address);

    public List<Warehouse> queryWarehouseName();

    public List<Warehouse> queryDeletedWarehouse(@Param("name") String name, @Param("address") String address);

    public boolean addWarehouse(Warehouse warehouse);

    public boolean deleteWarehouse(Integer id);

    public boolean resumeWarehouse(Integer id);

    public boolean writeOff(Integer id);

    public boolean updateWarehouse(Warehouse warehouse);

    public boolean add(List<Waybill> waybill);

    public List<Warehouse> queryWarehousePhone(String phone);
}
